import 'package:seedfour/generated/json/base/json_field.dart';
import 'package:seedfour/generated/json/seal_list_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class SealListEntity {
	int? total;
	List<SealInfo>? data;

	SealListEntity();

	factory SealListEntity.fromJson(Map<String, dynamic> json) => $SealListEntityFromJson(json);

	Map<String, dynamic> toJson() => $SealListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class SealInfo {
	String? id;
	String? creatorName;
	String? taker;
	int? createdAt;
	int? updatedAt;
	int? status;
	int? type;
	int? sealType;
	int? printNum;
	String? caseId;
	String? archive;
	String? rejectRemark;
	String? completeRemark;
	String? createdAtStr;
	String? updatedAtStr;
	String? caseName;

	SealInfo();

	factory SealInfo.fromJson(Map<String, dynamic> json) => $SealInfoFromJson(json);

	Map<String, dynamic> toJson() => $SealInfoToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}